<template>
	<view class="help">
		<u-navbar :title="title" :placeholder="true" bgColor="rgba(255,255,255,0.0)" :autoBack="true">
		</u-navbar>
		<view class="cont">
			<u-parse :content="info.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				info: {}
			}
		},
		onLoad(e) {
			this.gethelpdetails(e.id)
		},
		methods: {
			gethelpdetails(id) {
				let params = {
					id: id
				}
				this.$Request({
					method: 'GET',
					url: '/api/goods/announcement/help/detail',
					data: params,
					ismsg: false,
				}).then(res => {
					if (res.code == 200) {
						this.info = res.data
						this.title = this.info.title
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.help {
		min-height: calc(100vh - 91rpx);
		background-image: url('../../../static/goods/top-bg.png');
		background-size: 100% 561rpx;
		background-repeat: no-repeat;

		.cont {
			padding: 20rpx;
			word-break: break-all;
		}
	}
</style>